package com.spark.userservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spark.basecommon.entity.user.UmsPermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 后台用户权限表 Mapper 接口
 * </p>
 *
 * @author fuqiang
 * @since 2020-09-29
 */
@Mapper
public interface UmsPermissionMapper extends BaseMapper<UmsPermission> {

    /**
     * 根据角色id查询权限信息
     * @param roleIds
     * @return
     */
    Set<UmsPermission> findPermissionByRoleIds(List<Long> roleIds);
}
